{%include file="m.index.header.tpl.php"%}
<style>
		@media only screen and (max-width: 760px),(min-device-width: 768px) and (max-device-width:1024px)  {
		#mytable, #mytable thead, #mytable tbody, #mytable th, #mytable td, #mytable tr { 
			display: block; 
		}
		#mytable thead tr { 
			position: absolute;
			top: -9999px;
			left: -9999px;
		}
		#mytable td { 
			border: none;
			border-bottom: 1px solid #eee; 
			position: relative;
			padding-left:34% !important; 
			padding-top:10px ;
		}
	    #mytable tr{ margin-bottom:20px;}
		#mytable td:before { 
			position: absolute;
			top:10px;
			left:8px;
			width: 45%; 
			padding-right:10px;
			white-space: nowrap;
		}
		    #mytable td:nth-of-type(1):before { content: "类别"; }
			#mytable td:nth-of-type(2):before { content: "内容"; }
			#mytable td:nth-of-type(3):before { content: "时间段"; }
			#mytable td:nth-of-type(4):before { content: "备注"; }
			#mytable td:nth-of-type(5):before { content: "操作"; }
        }		
</style>
<!--主要内容开始-->
<div class="container  curriculum">
    <div class="row row_margin">
        <h4 class="text-center">作息时间表</h4>
        <table class="table table-bordered  text-center" >
            <tr>
                <th>类别</th>
                <th>内容</th>
                <th>时间</th>
            </tr>
            {%foreach from=$hourrest_lists key=key item=value%}

            <tr>
                <td>{%$value.resttype_name%}</td>
                <td>{%$value.arrange_content|truncate:30:"..." %}</td>
                <td>{%$value.start_time%}~{%$value.end_time%}</td>
            </tr>
            {%/foreach%}

        </table>
    </div>

    <!--row  end-->

</div>
  <!--主要内容结束-->
{%include file="m.index.footer.tpl.php"%}
